package com.offcn.service;

import com.offcn.mapper.DemoDao;
import com.offcn.pojo.Demo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service(value="demoService")
public class DemoServiceImpl implements DemoService {

    @Autowired
    DemoDao demoDao;

    @Override
    public void saveDemo(Demo demo) {
        demoDao.saveDemo(demo);
    }

    @Override
    public List<Demo> findDemoList() {
        return demoDao.findDemoList();
    }
}
